import apibase from "@/api/apiBase";
import axios from "axios";

//取消服务渠道授权
export const $serviceOrganizationCancel = (params:any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.post({
    url: '/female/serviceOrganization/cancel',
    data:params,
    instance,
  });
}

//服务渠道授权
export const $serviceOrganizationGrant = (params:any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.post({
    url: '/female/serviceOrganization/grant',
    data:params,
    instance,
  });
}

//服务渠道列表
export const $serviceOrganizationChannelList = (params:any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/female/serviceOrganization/channelList',
    data:params,
    instance,
  });
}

//非服务渠道列表
export const $serviceOrganizationNotChannelList = (params:any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/female/serviceOrganization/notChannelList',
    data:params,
    instance,
  });
}